var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getMapId() == 350060180) {
                cm.spawnMobLimit(8240098, 1, 515, -16, 1);
                cm.obstacleFallRepeat(3, 48, 50, 5)
            } else {
                if (cm.getMapId() == 350060200) {
                    cm.spawnMobLimit(8240099, 1, 515, -16, 1);
                    cm.obstacleFallRepeat(4, 48, 51, 5)
                } else {
                    if (cm.getMapId() == 350060240) {
                        cm.spawnMobLimit(8240104, 1, 515, -16, 1);
                        cm.obstacleFallRepeat(3, 48, 50, 5)
                    } else {
                        if (cm.getMapId() == 350060260) {
                            cm.spawnMobLimit(8240105, 1, 515, -16, 1);
                            cm.obstacleFallRepeat(4, 48, 51, 5)
                        }
                    }
                }
            }
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};